<ng-container *ngIf="control.errors">
    <ng-container *ngIf="control.dirty && control.errors.required">
        <span class="label-error">请输入{{controlName}} !</span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.minlength">
        <span class="label-error">输入值长度不够 !</span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.maxlength">
        <span class="label-error">{{controlName}}的输入值长度不能大于{{control.errors.maxlength.requiredLength}} ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.min">
        <span class="label-error">{{controlName}}不能小于{{control.errors.min.min}} ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.max">
        <span class="label-error">{{controlName}}不能大于{{control.errors.max.max}} ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.ip">
        <span class="label-error">输入值不是合法的 IP 地址 ! </span>
    </ng-container>
     <ng-container *ngIf="control.dirty && control.errors.mac">
        <span class="label-error">输入值不是合法的 MAC 地址 ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.ipSegment">
        <span class="label-error">输入值不是合法的 IP 地址 ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.specialcode">
        <span class="label-error">输入值不能包含{{control.errors.specialcode}} </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.phonenumber">
        <span class="label-error">{{control.errors.phonenumber}} </span>
    </ng-container>
    <ng-container *ngIf="control.errors.pattern">
        <span class="label-error">输入值不符合预定格式 ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.port">
        <span class="label-error">{{controlName}}必须为0~65535的正整数 ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.aport">
        <span class="label-error">{{controlName}}必须为0~65535之间的正整数 ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.standardName1">
        <span class="label-error">{{controlName}}只能包含英文字母、数字和下划线（以字母开头）! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.positiveInt">
        <span class="label-error">{{controlName}}必须为正整数 ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.thresholdisRange">
        <span class="label-error">{{controlName}}必须为0~100之间的数字 ( 小数最多为小数点后两位 ) ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.minLengthPass">
        <span class="label-error">{{controlName}}长度应该是8到32位 ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.checkPassWord">
        <span class="label-error">{{controlName}}至少含数字、字母 ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.filePath">
        <span class="label-error">{{controlName}}格式非法 ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.specialcodeConfig">
        <span class="label-error">输入值不能包含{{control.errors.specialcodeConfig}} </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.IntRange">
        <span class="label-error">
            {{controlName}}必须为大于等于{{control.errors.IntRange[0]}}小于等于{{control.errors.IntRange[1]}}的整数 !
        </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.emails">
        <span class="label-error">{{controlName}}{{control.errors.emails}} ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.json">
        <span class="label-error">{{controlName}}必须为json格式 ! </span>
    </ng-container>
    <ng-container *ngIf="control.dirty && control.errors.ipv4">
        <span class="label-error">输入值不是合法的IP地址 ! </span>
    </ng-container>
</ng-container>
